package com.hansintelligent.rrrmvpframework.view.login.model;


import com.hansintelligent.rrrmvpframework.base.BaseResponse;
import com.hansintelligent.rrrmvpframework.base.mvp.BaseModel;
import com.hansintelligent.rrrmvpframework.bean.UserInfo;
import com.hansintelligent.rrrmvpframework.view.login.contract.LoginContract;
import com.hansintelligent.rrrmvpframework.constant.APIConstant;
import com.hansintelligent.rrrmvpframework.network.APIService;


import io.reactivex.Observable;

/**
 * LoginModel
 * Created by wangfu on 2018/5/8.
 */

public class LoginModel extends BaseModel implements LoginContract.IModelContract {

    private APIService service;

    public LoginModel() {
        service = createService(APIService.class);
    }

    @Override
    public Observable<BaseResponse<UserInfo>> login(String code, String psd) {
        return service.login(code, psd);
    }


}
